package com.songyuesheng.app.controller;

import com.songyuesheng.app.commom.Result;
import com.songyuesheng.app.service.HistoryService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author song
 * @Date 2025/3/28 11:01
 */
@RestController
public class HistoryController {

    @Resource
    private HistoryService historyService;

    @GetMapping("/history")
    public Result<?> history() {
        return historyService.getHistory();
    }
}
